<?php
namespace api\portal\controller;

use cmf\controller\RestBaseController;
use think\Db;

class PublicController extends RestBaseController
{
    public function get_sid()
    {
        session_start();
        $this->success('获取成功', session_id());
    }

    public function xieyi() {
      $data = Db::name('option')->where('option_name', 'fuwuxieyi')->find();
      $value = $data['option_value'];
      return json_decode($value);
    }

}
